// const { defineConfig } = require('@vue/cli-service')
const packageName = require('./package.json').name
module.exports = {
    // transpileDependencies: true,
    configureWebpack: {
        mode: "development",
        output: {
            // 打包出一个库,umd格式
            library: `${packageName}-[name]`,
            libraryTarget: 'umd',
            chunkLoadingGlobal: `webpackJsonp_${packageName}`,
        }
    },
    devServer: {
        port: 9003,
        headers: {
            'Access-Control-Allow-Origin': '*',
        },
    }
}
